package com.gexin.model.template;

import com.gexin.model.Activity;
import com.gexin.model.template.base.BaseTemplateWuliu;

import java.util.List;

/**
 * 业务名称:  t_template_wuliu(物流模版的列表) 
 */
@SuppressWarnings("serial")
public class TemplateWuliu extends BaseTemplateWuliu<TemplateWuliu> {
	public static final TemplateWuliu dao = new TemplateWuliu();

	/**
	 * fang 2016-07-11
	 * 根据 shop_id  找到所有的物流模版
	 *
	 */
	public List<TemplateWuliu> getTemplateListByShopId(String shop_id){
		String sql=" select * from  t_template_wuliu where shop_id=?";
		return dao.find(sql,shop_id);
	}

	public TemplateWuliu getTemplateListByActivityId(String activityId){
		String sql=" select * from  t_template_wuliu where activity_id=?";
		return dao.findFirst(sql,activityId);
	}
}
